package com.myminio.springbootminio.config

import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import springfox.documentation.builders.ApiInfoBuilder
import springfox.documentation.oas.annotations.EnableOpenApi
import springfox.documentation.service.Contact
import springfox.documentation.spi.DocumentationType
import springfox.documentation.spring.web.plugins.Docket

@Configuration
@EnableOpenApi
open class Swagger3Config {
    @Bean
    fun docket():Docket{
        return  Docket(DocumentationType.OAS_30).apiInfo(
            ApiInfoBuilder().contact(Contact("baoshiyu","","1203637067@qq.com"))
                .title("swagger3")
                .build()
        )
    }
}